package com.university.mentalhealthplatform.appModels;


import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;

@Entity
@Table(name = "details")
public class Detail {

    @Id
    private String type; // 用于标识不同类型的详细信息

    private String title;
    @Column(length = 5000)
    private String description;

    public Detail() {
    }

    public Detail(String type, String title, String description) {
        this.type = type;
        this.title = title;
        this.description = description;
    }

    // getters 和 setters
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
